Beacon- and Schema-Based Method for Recognizing Algorithms from Students’ Source Code
نویسندگان
چکیده
In this paper, we present a method for recognizing algorithms from students’ programming submissions coded in Java. The method is based on the concept of programming schemas and beacons. Schemas are high-level programming knowledge with detailed knowledge abstracted out, and beacons are statements that imply specific structures in a program. The method automatically searches for schemas from the given program and compares the extracted schemas with those from the knowledge base to recognize the algorithm-specific code for further processing. In the next step, several characteristics and beacons specific to the given algorithm are computed from the code. These characteristics and beacons are then used as the learning data and given to the C4.5 algorithm, which builds a classification tree that can be used to classify previously unseen implementations of algorithms. The method and its performance is demonstrated in the case of basic sorting algorithms and their variations implemented both in various learning resources, that is, textbooks and websites, (N = 209 programs) and in genuine student submissions in a first year data structures and algorithms course (N = 159). The empirical study conducted for evaluating the performance of the classification by leave-one-out cross-validation technique shows that the estimated true positive rate is 97.0%. The results demonstrate the feasibility of the idea of recognizing algorithms based on algorithm-specific programming schemas and beacons. The method can be used as white-box analysis to verify that students have implemented the required algorithm and to give feedback to students on their problematic implementations. We discuss the applications of the method from both teachers’ and students’ point of view.
منابع مشابه
Schema Detection and Beacon-Based Classification for Algorithm Recognition
We introduce a method for recognizing algorithms based on programming schemas, which are generic conceptual knowledge with details abstracted out, and beacons, which are key statements that suggest existence of specific structures in code. First, the method detects the schemas related to the implementation of the target algorithm and next it computes the characteristics and algorithm-specific b...
متن کاملAutomatic Algorithm Recognition Based on Programming Schemas
A method for recognizing algorithms by detecting algorithmic schemas is presented. The method uses the findings of the studies on programming schemas, according to which experts develop schemas, high-level cognitive constructs that abstract knowledge of programming structures, and use them in comprehending and solving similar problems that differ in lower level details. We introduce a set of sc...
متن کاملAutomatic Algorithm Recognition Based on Programming Schemas and Beacons - A Supervised Machine Learning Classification Approach
Aalto University, P.O. Box 11000, FI-00076 Aalto www.aalto.fi Author Ahmad Taherkhani Name of the doctoral dissertation Automatic Algorithm Recognition Based on Programming Schemas and Beacons: A Supervised Machine Learning Classification Approach Publisher Aalto University School of Science Unit Department of Computer Science and Engineering Series Aalto University publication series DOCTORAL ...
متن کاملAssessing the information literacy of Farhangian University student-teachers from six perspectives: reviewing, recognizing sources, disseminating, recognizing, flexibility and seeking information
Background: Today, the scope of science and knowledge and, consequently, its measurement has become very common. The use of this information in the university environment depends on the students' knowledge of the places where the information is disseminated and how it is used and the methods of retrieving and using that information. The aim of this study was to investigate the information liter...
متن کاملA Comparison between Marriage Expectations in People with Needs for Succorance and Kind People
The current research was conducted with the aim to compare the marriage expectations between kind people and people with needs for succorance. The study was carried out using correlational method. The statistical population of this research consisted of all single students at Shahrekord University. For that purpose, a total number of 130 students (55 males, 75 females) were selected using rando...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2013